Two-dimensional code identification method and device, and mobile terminal

ABSTRACT

This application discloses a two-dimensional code identification method, device and a mobile terminal. The two-dimensional code identification method comprises: sensing a capture operation performed by a user on an application interface, the application interface containing a two-dimensional code; in response to the sensed capture operation, capturing an image of the application interface; scanning the image to obtain two-dimensional code information of the two-dimensional code contained in the image.

CROSS-REFERENCE TO RELATED APPLICATIONS

The present application is a continuation application of International Patent Application No. PCT/CN2017/093549, filed on Jul. 19, 2017, which is based on and claims priority to the Chinese Patent Application No. 201610602558.6, filed on Jul. 27, 2016 and entitled “TWO-DIMENSIONAL CODE IDENTIFICATION METHOD AND DEVICE, AND MOBILE TERMINAL.” The above-referenced applications are incorporated herein by reference in their entirety.

TECHNICAL FIELD

This application relates to the technical field of graphic images, and in particular to a two-dimensional code identification method and device, and mobile terminal.

BACKGROUND

A two-dimensional code is also called a two-dimensional bar code. It uses a graphic of lines and spaces, formed by a particular geometric graphic distributed along a plane (two-dimensional direction) according to given rules, to record data symbol information. A two-dimensional code is characterized by a large capacity for information, a wide range of coding, strong fault-tolerance, and high decoding reliability. In addition, it has the advantages of being low-cost and easy to fabricate. Therefore, two-dimensional codes are widely used in people's lives.

With the development of the Internet and the popularization of mobile terminals, the uses of two-dimensional codes on mobile terminals are increasing daily. When using a two-dimensional code on a mobile terminal, identification is first performed. After a two-dimensional code appears in a given application on a terminal (referred to as the first terminal; this may be a PC terminal, mobile terminal, etc.), in the current technologies, a terminal other than the first terminal (referred to as the second terminal) usually needs to invoke its own camera function to scan the two-dimensional code, thereby obtaining the information stored in the two-dimensional code, and then achieving a variety of functions on the second terminal, such as payment functions, positioning, and social functions.

This shows that the current technologies often needs another terminal other than the terminal displaying the two-dimensional code to perform identification of the two-dimensional code. This is inconvenient for users. For example, when a user uses a mobile terminal to watch a live broadcast, and the user wants to scan a two-dimensional code appearing at the bottom of the screen of the mobile terminal, and then implement relevant functions corresponding to that two-dimensional code, the current technologies have no better way to meet this need than using another device.

SUMMARY

The main objective of this specification is to provide a two-dimensional code identification method, device, and mobile terminal. It is aimed at solving the problem in existing two-dimensional code identification methods, in that they cannot perform identification of a two-dimensional code in an application interface image in an application displayed on the display element of a mobile terminal.

According to one aspect, this specification provides a method for two-dimensional code identification, comprising: sensing a capture operation performed by a user on an application interface, the application interface containing a two-dimensional code; in response to the sensed capture operation, capturing an image of the application interface; and scanning the image to obtain two-dimensional code information of the two-dimensional code contained in the image.

In some embodiments, after obtaining the two-dimensional code information of the two-dimensional code contained in the image, the method further comprises: displaying a function operation interface corresponding to the obtained two-dimensional code information. In some embodiments, the method may further comprise performing a function corresponding to the obtained two-dimensional code information.

In some embodiments, the image contains multiple two-dimensional codes. In some embodiments, after obtaining the two-dimensional code information of the multiple two-dimensional codes contained in the image, the method further comprises: displaying an item list, the item list containing multiple function operation interface items each corresponding to one of the multiple two-dimensional codes for responding to an operation performed by the user on the function operation interface items in the item list, and entering into a corresponding function operation interface.

In some embodiments, the capture operation performed by the user on the application interface comprises the user operating on a virtual component on the application interface. In some embodiments, the capture operation performed by the user on the application interface comprises the user operating on a physical button.

According to another aspect, this specification provides a device for two-dimensional code identification, the device comprising one or more processors and one or more non-transitory computer-readable memories coupled to the one or more processors and configured with instructions executable by the one or more processors to cause the device to perform operations comprising: sensing a capture operation performed by a user on an application interface, the application interface containing a two-dimensional code; in response to the sensed capture operation, capturing an image of the application interface; and scanning the image to obtain two-dimensional code information of the two-dimensional code contained in the image.

According to still another aspect, this specification provides a non-transitory computer-readable memory to be coupled to one or more processors and configured with instructions executable by the one or more processors to cause the one or more processors to perform operations comprising: sensing a capture operation performed by a user on an application interface, the application interface containing a two-dimensional code; in response to the sensed capture operation, capturing an image of the application interface; and scanning the image to obtain two-dimensional code information of the two-dimensional code contained in the image.

Compared to current technologies, in the two-dimensional code identification method and device and mobile terminal of the embodiments of this specification, a two-dimensional code identification device or mobile terminal alone is used to capture an application interface image of an application interface displayed on a display element, and to scan the image so as to identify the two-dimensional code contained in the image. Thus, real-time identification may be performed for a two-dimensional code in the application interface image of an application interface displayed in real-time on a display element, and the operation is fast and convenient.

BRIEF DESCRIPTION OF THE DRAWINGS

The accompanying drawings described here are used to provide a further understanding of this application, and they are a part of this application. The illustrative embodiments of this application and their descriptions are used to explain this application, and they do not serve as improper limitations of this application. In the accompanying drawings:

FIG. 1 is a flow diagram of a two-dimensional code identification method based on an embodiment of this specification;

FIG. 2 is a flow diagram of a two-dimensional code identification method based on another embodiment of this specification;

FIG. 3 is a diagram of two-dimensional code identification by a mobile terminal according to an embodiment of this specification;

FIG. 4 is a diagram of two-dimensional code identification by a mobile terminal according to another embodiment of this specification;

FIG. 5 is a block diagram of a two-dimensional code identification device according to an embodiment of this specification.

DETAILED DESCRIPTION

To make the objectives, technical schemes, and advantages of this application clearer, a clear and comprehensive description of the technical schemes of this application is given below, in combination with the embodiments and corresponding accompanying drawings of this application. The described embodiments are merely some, rather than all, of the embodiments of this application. Based on the embodiments in this application, all other embodiments obtainable by those of ordinary skill in the art without creative effort shall fall within the scope of protection of this application.

The system will be described in further detail with reference to the accompanying drawings. In the following description, embodiments will be described in further detail with reference to the accompanying drawings. The same numerals represent the same elements.

The mobile terminal according to this specification is a device comprising a display element, and it may include, but is not limited to, any of the following devices: a personal computer (PC), a mobile device (such as a cell phone, a personal digital assistant (PDA), a digital camera, a portable game console, an MP3 player, a portable/personal multimedia player (PMP), a handheld e-book, a tablet PC, a portable laptop PC, and a global positioning system (GPS) navigator), a smart TV, etc.

In addition, the display element of the mobile terminal according to this specification may comprise a touch screen and a touch screen controller. Here, the touch screen may provide a user with user interfaces (UI) corresponding to various services (e.g., calling, data transmission, broadcasting, filming, payments, etc.), and it sends an analog signal corresponding to at least one touch on the UI to a touch screen controller. In the description of this specification, a “touch” may comprise a contact touch and a contactless touch. Here, a contact touch refers to at least one touch input through the user's body part (e.g., a finger) or a touch input instrument (e.g., a pen or stylus) that may be received by the touch screen. The touch screen also may receive a touch input signal corresponding to continuous movement of one touch or multiple touches. For example, a contact touch may comprise a single tap, double tap, drag, drag and drop, etc. The touch screen may send an analog signal corresponding to the continuous movement of an input touch to the touch screen controller.

A contactless touch is also called a hover touch. For example, a contactless touch is not limited to contact between the touch screen and the user's body part or a touch input instrument. Touch screens may have different detection intervals based on the properties and configuration of the mobile terminal. In addition, touch screens may be implemented as resistive, capacitive, infrared, or acoustic wave touch screens.

The touch screen controller converts the analog signal received from the touch screen into a digital signal (For example, X and Y coordinates). A controller may use the digital signal received from the touch screen controller to control the touch screen. For example, in response to the user's selection of a shortcut icon or button displayed on the touch screen, the mobile terminal according to this specification may display an application interface corresponding to the shortcut icon.

FIG. 1 is a flow diagram of a two-dimensional code identification method according to an embodiment of this specification. As shown in FIG. 1, in S101, the method senses a capture operation performed by a user on an application interface. The application interface contains a two-dimensional code. For example, a user input is sensed when an application interface, including a two-dimensional code, of an application is displayed on a display element of a mobile terminal. Here, the user input refers to a user performing a capture operation to the application interface. For example, the user may select an application shortcut icon or button displayed on the display element, so the mobile terminal runs the application. At this time, the application interface of this application is displayed on the display element. For example, if the application is an instant messaging application (e.g., WeChat), then the application interface (e.g., a chat interface) of the instant messaging application is displayed on the display element of the mobile terminal. Next, the mobile terminal senses a capture operation performed by the user to the application interface. Here, the application may be an embedded application or third-party application stored in the storage element. An embedded application refers to a pre-installed application in a portable terminal device. For example, embedded applications may be browsers, emails, and instant messengers. Third-party applications are diverse, and refer to applications downloaded from online markets and installed on a mobile terminal, such as payment applications, shopping applications, and entertainment applications. Third-party application may be installed and controlled free of charge.

In addition, a user input may comprise the user's operation (e.g., touching) to a virtual component (e.g., virtual keyboard or virtual button, menu, text, image, number, or icon displayed on the display element) displayed on the display element of a mobile terminal, or the user's operation (e.g., pressing) to a physical button (e.g., small keyboard, actual button, etc.) on the mobile terminal. The virtual component may be displayed in any position on the display element, based on the user's settings. In some embodiments, during the operation process, the user may use a user input such as dragging to change the position of the virtual component on the display element. For example, when the user expects a two-dimensional code displayed on the display element of the mobile terminal to be identified, the user may touch/select a virtual button displayed on the display element, or press a physical button on the mobile terminal. A detailed explanation of the “touch” in this specification has been given above; a detailed description will not be repeated here.

For example, the user may touch a shortcut icon displayed on the screen of the display element. In this situation, the mobile terminal will run the application corresponding to the icon, such as a live broadcast application or shopping application. At the same time, the application interface of this application, containing a two-dimensional code, is displayed on the display element of the mobile terminal. Next, the user may directly use a finger or a stylus to touch a virtual component displayed on the display element, or the user may directly hover a finger over a virtual component on the display element, or the user may press a physical key on the mobile terminal or simultaneously press two physical keys on the mobile terminal, to trigger the following process.

Next, in S102, in response to the sensed capture operation, the method captures an image of the application interface. For example, in response to the capture operation, an application interface image of the application interface displayed on the display element of the mobile terminal is captured; that is, in response to the capture operation, a screen shot of the mobile terminal's current screen is captured. For example, the user may perform a screen shot of the currently displayed image by touching a virtual button on the display element, to capture the image of the application interface currently displayed on the display element of the mobile terminal. As another example, the user may perform a screen shot of the currently displayed application interface image by pressing a physical key on a mobile phone. In some embodiments, based on the embodiments of this specification, the user may store the image in the mobile terminal's storage element.

In S103, the method scan the image to obtain two-dimensional code information of the two-dimensional code contained in the image. For example, the application interface image is scanned and the two-dimensional code information contained in the application interface image is identified. That is, a full-screen scan of the application interface image may be performed to identify all two-dimensional codes in the image. For example, the mobile terminal according to the embodiments of this specification may convert an image containing a two-dimensional code into a binary image and perform a dilation operation on the binary image to obtain a dilated binary image. Next, the mobile terminal detects the edges of the dilated binary image to obtain a contour of the two-dimensional code's bar-shaped region, and this contour is corrected and segmented to obtain a complete and standard bar code image. Afterward, grid sampling is performed on this standard bar code image (i.e., the image pixels at each point of intersection in the grid are sampled) to build a bitmap (determining whether the sampled pixels are dark colors or light colors based on a threshold value) and to obtain binary data of the bar code region. Error correction and translation are performed on the obtained binary data of the bar code region, and the obtained binary data of the bar code region is converted into data codewords, thereby identifying all two-dimensional codes in the image.

This specification is not limited to the two-dimensional code identification technology mentioned above. Examples are used merely to describe the current two-dimensional code identification technology. Any technology for identifying two-dimensional codes in an image may be used here.

In some embodiments, after the two-dimensional codes are identified, based on the two-dimensional code information identified from the application interface image, a function operation interface corresponding to the identified two-dimensional code information may be displayed on the display element of the mobile terminal. That is, a corresponding application is launched from the mobile terminal based on the two-dimensional code identification result. The application refers to an embedded application or third-party application in the storage element, as described earlier, Therefore, for conciseness and clarity, it will not be explained again here.

For example, if the two-dimensional code information relates to an Alipay link, the mobile terminal invokes the Alipay application; thus, an Alipay application interface is displaced on the display element. If the two-dimensional code information related to a WeChat link, the mobile terminal invokes the WeChat application; thus, a WeChat application interface is displayed on the display element. If the two-dimensional code information relates to a URL link, the mobile terminal invokes a browser application; thus, a browser application interface is displayed on the display element.

The preceding shows a situation in which the application interface image displayed on a display element comprises one two-dimensional code; this specification describes a situation in which the displayed application interface image does not comprise a two-dimensional code. The following is a detailed description of a situation in which an application interface image displayed on the display element of a mobile terminal comprises multiple two-dimensional codes, in reference to FIG. 2.

FIG. 2 is a flow diagram of a two-dimensional code identification method based on another embodiment of this specification. For example, FIG. 2 shows a two-dimensional code identification method when an application interface image displayed on the mobile terminal comprises multiple two-dimensional codes.

Referring to FIG. 2, in S201, with the application interface displayed on the display element of the mobile terminal comprising two-dimensional codes, a capture operation performed by a user to the application interface is sensed. Next, in S202, in response to the capture operation, the application interface image of the application interface displayed on the display element of the mobile terminal is captured. Then, in S203, the application interface image is scanned and the two-dimensional code information contained in the application interface image is identified. Steps S201 through S203 in FIG. 2 are the same as Steps S101 through S103 in FIG. 1. They will not be described again, because a detailed explanation has been provided in FIG. 1.

Next, in S204, based on the two-dimensional code identification results, an item list is displayed on the display element of the mobile terminal. The item list containing the function operation interface items each corresponding to each of the multiple two-dimensional codes, in order to respond to the operation performed by the user on the function operation interface items in the item list, and enter into the corresponding function operation interface. For example, if the application interface image comprises three two-dimensional codes, after this image is scanned, three two-dimensional codes may be separately identified. Next, a list of function operation interface items corresponding to the three two-dimensional codes is displayed on the display element. With function operation interface item list being displayed on the screen, in S205, the user selects the function operation interface item to be performed from the function operation interface item list. In some embodiments, the user may perform selection through touch input. The touch input comprises the user input designated in the above description.

Finally, based on the function operation interface item selected by the user, the display element of the mobile terminal according to this specification redirects to the application interface corresponding to this function operation interface item. Still taking three two-dimensional codes as an example, as described above, a function operation interface item list corresponding to the three two-dimensional codes is displayed on the display element. Next, the user may touch the desired function operation interface item. At this time, the display element of the mobile terminal redirects to the application interface corresponding to the touched function operation interface item.

As described above, the two-dimensional code identification method based on an exemplary embodiment of this specification, using only the mobile terminal itself, may perform identification of multiple two-dimensional codes displayed in the application interface of an application running on the mobile terminal and select the operation interface to be performed. Thus, with only a simple operation by the user, the mobile terminal may automatically identify multiple two-dimensional codes simultaneously displayed on the mobile terminal, and also enter into the desired operation interface on demand.

The following is a description of the two-dimensional code identification method according to this specification and its mobile terminal, with reference to application scenarios of this specification. Here, FIG. 3 is an application scenario in which the image comprises one two-dimensional code, and FIG. 4 is an application scenario in which the image comprises three two-dimensional codes.

FIG. 3 is a diagram of two-dimensional code identification by a mobile terminal according to an embodiment of this specification.

As shown in FIG. 3, a live broadcast application is launched in the mobile terminal of an embodiment of this specification. This specification is not limited to live broadcast applications. The mention of a live broadcast application here is merely used for the purpose of description, not limitation. This specification applies to any application capable of displaying an imaging comprising a two-dimensional code on a display element.

After launching the live broadcast application, the mobile terminal displays the application interface of the live broadcast application on the display element. That is, the mobile terminal displays an image 300 of a host 320 conducting a live broadcast on the display element. As shown in FIG. 3, the host 320 is displayed in the center of the image 300, and a two-dimensional code appears in the upper left corner of the image 300, e.g., a jacket link 310 shown in FIG. 3.

At any time during the live broadcast, the user may perform an operation (e.g., touch operation) using a virtual button 330 in the display element, thereby identifying the two-dimensional code 310. Even though the button 330 in FIG. 3 appears in the lower right corner of the display element, this does not limit the location of the button 330. The button 330 may appear at any location in the display element, and the user may change the location of the button 330 as needed. In addition, even though the button 330 in FIG. 3 is a virtual component, a corresponding function may also be achieved through a physical button (not shown) or keyboard (not shown) on the mobile terminal, or through a virtual keyboard displayed on the display element. After an operation is performed on the button 330, the display element of a mobile terminal may redirect to interface 300′. Interface 300′ may be a page for jacket purchase, or it may be a page for jacket payment.

In addition, image 300 may comprise multiple two-dimensional codes. The following is a description of an image comprising multiple two-dimensional codes, in reference to FIG. 4.

FIG. 4 is a diagram of two-dimensional code identification by a mobile terminal according to another embodiment of this specification.

Still using a live broadcast application as an example, after starting the live broadcast application, the mobile terminal displays the application interface of the live broadcast application on the display element. That is, the mobile terminal displays an image 400 of a host 440 conducting a live broadcast on the display element. As shown in FIG. 4, the host 440 is displayed in the center of the image 400, and there are multiple two-dimensional codes around the host 440. For example, in FIG. 4, there are three two-dimensional codes 410, 420, and 430. These three two-dimensional codes 410, 420 and 430 represent a jacket link, pants link, and a link of reward payment, respectively.

The user may operate the button 450 (e.g., touch operation) at any time during the live broadcast, thereby identifying the multiple two-dimensional codes 410, 420, and 430. Even though the button 450 in FIG. 4 appears in the lower right corner of the display element, this does not limit the location of the button 450. The button 450 may appear at any location in the display element, and the user may change the location of the button 450 as needed. In addition, even though the button 450 in FIG. 4 is a virtual component, a corresponding function may also be achieved through a physical button (not shown) or keyboard (not shown) on the mobile terminal, or through a virtual keyboard displayed on the display element.

After an operation is performed on the button 450, the display element of the mobile terminal may redirect to interface 400′. As shown in FIG. 4, interface 400′ comprises the identified two-dimensional code information displayed in a list. For example, this list comprises items for redirecting to a link of reward payment, redirecting to a page for jacket purchase, and redirecting to a page for pants purchase. The user may select the operation to be performed from this function operation interface item list. For example, the user may select item for redirecting to the reward payment page. Then, the display element of a mobile terminal may redirect to the reward payment page. For example, the user may select the item for redirect to the page for jacket purchase, and then, the display element of the mobile terminal may redirect to the jacket purchase page.

The following is a detailed description of a two-dimensional identification device according to an embodiment of this specification, in reference to FIG. 5.

FIG. 5 is a block diagram of a two-dimensional code identification device according to an embodiment of this specification. The mobile terminal described above refers to an apparatus comprising a two-dimensional code identification device. As a person skilled in the art will understand, the structure of the two-dimensional code identification device shown in FIG. 5 does not constitute a limitation of the mobile terminal of this specification. It may comprise more or fewer components than shown in the figure, a combination of certain components, or a different arrangement of components.

As shown in FIG. 5, the two-dimensional code identification device according to an embodiment of this specification comprises a display element 510, a sensing element 520, a capture element 530, and an identification element 540.

Here, the display element 510 is configured to display an application interface containing a two-dimensional code. For example, the user may select an application shortcut icon or button displayed on the display element, then the mobile terminal runs this application. At this time, this application interface containing a two-dimensional code is displayed on the display element. For example, when the mobile terminal has launched a live broadcast application, a frame of a host is displayed on the display element, as well as two-dimensional codes surrounding the frame of the host. As another example, when the mobile terminal has launched a shopping application, a frame of the merchandise to be purchased is displayed on the display element, as well as two-dimensional codes surrounding the merchandise frame.

The sensing element 520 is configured to sense a capture operation performed by a user to the application interface. Here, the capture operation performed by the user to the application interface may comprise user input (e.g., touching or selecting) through a virtual component (e.g., a virtual keyboard, menu, text, image, number, or icon displayed on the display element) displayed on the display element of a mobile terminal, or user input through a physical button (not shown) on the mobile terminal. Afterward, the capture element 530 captures an application interface image of the application interface displayed on the display element in response to the capture operation. For example, the user may perform a screen shot of the currently displayed image by tapping a virtual button on the display element, and may store the screen shot of the image in the mobile terminal's storage element (not shown). As another example, the user may perform a screen shot of the currently display image by pressing a physical key on the mobile terminal, and may store the screen shot of the image in the mobile terminal's storage element.

Afterward, the identification element 540 scans the application interface image and identifies the two-dimensional code information contained in the application interface image. An illustrative description of the two-dimensional code identification method has already been provided, which, for conciseness and clarity, will not be described again here.

After the identification element 540 identifies the two-dimensional code, the mobile terminal according to this specification may display the function operation interface corresponding to the identified two-dimensional code information on the display element 510, based on the result of two-dimensional code identification. For example, if the two-dimensional code identification result relates to an Alipay link, the mobile terminal invokes the Alipay application, thus displaying an operation interface for Alipay on the display element. If the two-dimensional code identification result relates to a WeChat link, the mobile terminal invokes the WeChat application, thus displaying an operation interface for WeChat on the display element. If the two-dimensional code identification result relates to a URL link, the mobile terminal invokes a browser application, thus displaying an operation interface for a browser on the display element.

In addition, in some embodiments, the mobile terminal according to this specification may also comprise a storage element, and the storage element may store captured application interface images. In addition, the storage element may also comprise embedded applications and third-party applications that can run on the mobile terminal.

In addition, the image on the mobile terminal may comprise multiple two-dimensional codes. Under these circumstances, after the identification element identifies multiple two-dimensional codes, the display element displays an item list, the item list containing the function operation interface items each corresponding to each of the multiple two-dimensional codes, in order to respond to the operation performed by the user to the function operation interface items in the item list, and enter into the corresponding function operation interface.

In some embodiments, the mobile terminal according to this specification may comprise: a display element, displaying an application interface containing a two-dimensional code; a sensing element, sensing a capture operation performed by a user to the application interface; a capture element, capturing an application interface image of the application interface displayed on a display element in response to the capture operation; and an identification element, scanning the application interface image and identifying the two-dimensional code information contained in the application interface image.

In the two-dimensional code identification method and device and mobile terminal provided by the embodiments of this specification, a two-dimensional code identification device or mobile terminal alone is used to capture, in real-time, an application interface containing a two-dimensional code displayed on a display element and to scan the image, thereby identifying the two-dimensional code information contained in the application interface image, and making the operation fast and convenient.

The executing entity of the steps of the method provided by Embodiment 1 may be the same device, or this method may use different devices as executing entities. For example, the executing entity for Step 21 and Step 22 may be Device 1, and the executing entity for Step 23 may be Device 2. As another example, the executing entity for Step 21 may be Device 1, and the executing entity for Step 22 and Step 23 may be Device 2; etc.

A person skilled in the art should understand that the embodiments of this application may be provided as a method, system, or computer program product. Therefore, this application may employ a pure hardware embodiment form, a pure software embodiment form, or an embodiment form that combines software and hardware. Also, this application may employ the form of one or more computer program products achieved through computer storage media (including but not limited to magnetic disc memory, CD-ROM, optical memory, etc.) comprising computer-executable program code.

This specification provides description in reference to flow diagrams and/or block diagrams of methods, devices (systems), and computer program products according to embodiments of this specification. Every flow and/or block in the flow diagrams and/or block diagrams, as well as combinations of the flows and/or blocks in the flow diagrams and/or block diagrams, may be achieved through computer program instructions. These computer program instructions may be provided to a processor of a general-purpose computer, specialized computer, embedded processor, or other programmable data processing device to produce a machine, causing the instructions executed by the processor of a computer or other programmable data processing device to produce a device configured to achieve the functions designated in one or more flows of a flow diagram and/or one or more blocks of a block diagram.

These computer program instructions can also be stored in computer-readable memory that can cause a computer or other programmable data processing device to operate in a given mode, causing the instructions stored in this computer-readable memory to generate a product comprising an instruction apparatus. This instruction apparatus achieves the functions specified in one or more flows of a flow diagram and/or one or more blocks of a block diagram.

These computer program instructions can also be loaded onto a computer or other programmable data processing device, enabling the execution of a series of operation steps on the computer or other programmable device to produce computer processing. In this way, the instructions executed on the computer or other programmable device provide steps for achieving the specified functions of one or more flows in a flow diagram and/or one or more blocks in a block diagram.

In one typical configuration, the computation equipment comprises one or more processors (CPUs), input/output interfaces, network interfaces, and internal memory.

The internal memory may comprise the forms of volatile memory on computer-readable media, random access memory (RAM), and/or non-volatile RAM, such as read-only memory (ROM) or flash RAM. Internal memory is an example of computer-readable media.

Computer-readable media include permanent, nonpermanent, mobile, and immobile media, which can achieve information storage through any method or technology. The information may be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, Phase-change RAM (PRAM), Static RAM (SRAM), Dynamic RAM (DRAM), other types of Random Access Memory (RAM), Read-Only Memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), flash memory or other internal memory technologies, Compact Disk Read-Only Memory (CD-ROM), Digital Versatile Discs (DVD) or other optical memories, cassettes, magnetic tape and disk memories or other magnetic memory devices, or any other non-transmission media, which can be used for storing information that can be accessed by a computation device. According to the definitions herein, computer-readable media exclude transitory computer-readable media (transitory media), such as modulated data signals and carriers.

It should also be noted that the terms “comprise” and “contain” or any variations thereof are intended as non-exclusive inclusion. Thus, a process, method, product, or device comprising a series of elements does not comprise these elements only. It also comprises other elements not explicitly listed, or it also comprises elements inherent to that process, method, product, or device. When there are no other limitations, an element defined by the phrasing “comprising one . . . ” does not exclude the presence of other, similar elements in the process, method, product, or device comprising the element.

A person skilled in the art should understand that the embodiments of this application may be provided as a method, system, or computer program product. Therefore, this application may employ a pure hardware embodiment form, a pure software embodiment form, or an embodiment form that combines software and hardware. Also, this application may employ the form of one or more computer program products achieved through computer storage media (including but not limited to magnetic disc memory, CD-ROM, optical memory, etc.) comprising computer-executable program code.

The preceding are merely embodiments of this application, which are not used to limit this application. Various modifications and changes to this application are available to a person skilled in the art. All revisions, equivalent substitutions, and improvements made within the spirit and principles of this application shall fall within the scope of protection of this application. 

What is claimed is:
 1. A method for two-dimensional code identification, the method comprising: sensing a capture operation performed by a user on an application interface, the application interface containing a two-dimensional code; in response to the sensed capture operation, capturing an image of the application interface; and scanning the image to obtain two-dimensional code information of the two-dimensional code contained in the image.
 2. The method according to claim 1, wherein, after obtaining the two-dimensional code information of the two-dimensional code contained in the image, the method further comprises: displaying a function operation interface corresponding to the obtained two-dimensional code information.
 3. The method according to claim 1, further comprising performing a function corresponding to the obtained two-dimensional code information.
 4. The method according to claim 1, wherein the image contains multiple two-dimensional codes.
 5. The method according to claim 4, wherein, after obtaining the two-dimensional code information of the multiple two-dimensional codes contained in the image, the method further comprises: displaying an item list, the item list containing multiple function operation interface items each corresponding to one of the multiple two-dimensional codes for responding to an operation performed by the user on the function operation interface items in the item list, and entering into a corresponding function operation interface.
 6. The two-dimensional code identification method according to claim 1, wherein the capture operation performed by the user on the application interface comprises the user operating on a virtual component on the application interface.
 7. The two-dimensional code identification method according to claim 1, wherein the capture operation performed by the user on the application interface comprises the user operating on a physical button.
 8. A device for two-dimensional code identification, the device comprising one or more processors and one or more non-transitory computer-readable memories coupled to the one or more processors and configured with instructions executable by the one or more processors to cause the device to perform operations comprising: sensing a capture operation performed by a user on an application interface, the application interface containing a two-dimensional code; in response to the sensed capture operation, capturing an image of the application interface; and scanning the image to obtain two-dimensional code information of the two-dimensional code contained in the image.
 9. The device according to claim 8, wherein, after obtaining the two-dimensional code information of the two-dimensional code contained in the image, the operations further comprise: displaying a function operation interface corresponding to the obtained two-dimensional code information.
 10. The device according to claim 8, wherein the image contains multiple two-dimensional codes.
 11. The device according to claim 10, wherein, after obtaining the two-dimensional code information of the multiple two-dimensional codes contained in the image, the operations further comprise: displaying an item list, the item list containing multiple function operation interface items each corresponding to one of the multiple two-dimensional codes for responding to the operation performed by the user on the function operation interface items in the item list, and entering into a corresponding function operation interface.
 12. The device according to claim 8, wherein the capture operation performed by the user on the application interface comprises the user operating on a virtual component displayed on the device.
 13. The device according to claim 8, wherein the capture operation performed by the user on the application interface comprises the user operating on a physical button of the device.
 14. The device according to claim 8, wherein the operations further comprise performing a function corresponding to the obtained two-dimensional code information.
 15. A non-transitory computer-readable memory to be coupled to one or more processors and configured with instructions executable by the one or more processors to cause the one or more processors to perform operations comprising: sensing a capture operation performed by a user on an application interface, the application interface containing a two-dimensional code; in response to the sensed capture operation, capturing an image of the application interface; and scanning the image to obtain two-dimensional code information of the two-dimensional code contained in the image.
 16. The non-transitory computer-readable memory according to claim 15, wherein, after obtaining the two-dimensional code information of the two-dimensional code contained in the image, the operations further comprise: displaying a function operation interface corresponding to the obtained two-dimensional code information.
 17. The non-transitory computer-readable memory according to claim 15, wherein the image contains multiple two-dimensional codes.
 18. The non-transitory computer-readable memory according to claim 17, wherein, after obtaining the two-dimensional code information of the multiple two-dimensional codes contained in the image, the operations further comprise: displaying an item list, the item list containing multiple function operation interface items each corresponding to one of the multiple two-dimensional codes for responding to an operation performed by the user on the function operation interface items in the item list, and entering into a corresponding function operation interface.
 19. The non-transitory computer-readable memory according to claim 15, wherein the capture operation performed by the user on the application interface comprises the user operating on a virtual component displayed on the application interface.
 20. The non-transitory computer-readable memory according to claim 15, wherein the operations further comprise performing a function corresponding to the obtained two-dimensional code information. 